import request from '@/utils/request'

// 查询水质基础设置列表
export function getWaterQualityList(params) {
  return request({
    url: '/operation/web/operationWaterQualityBaseSetting/list',
    method: 'get',
    params
  })
}

// 获取水质基础设置详细信息
export function getWaterQualityDetail(waterQualityId) {
  return request({
    url: `/operation/web/operationWaterQualityBaseSetting/${waterQualityId}`,
    method: 'get'
  })
}

// 新增水质基础设置
export function addWaterQuality(data) {
  return request({
    url: '/operation/web/operationWaterQualityBaseSetting',
    method: 'post',
    data
  })
}

// 修改水质基础设置
export function updateWaterQuality(data) {
  return request({
    url: '/operation/web/operationWaterQualityBaseSetting',
    method: 'put',
    data
  })
}

// 删除水质基础设置
export function deleteWaterQuality(waterQualityIds) {
  return request({
    url: `/operation/web/operationWaterQualityBaseSetting/${waterQualityIds}`,
    method: 'delete'
  })
}